temperature=input('请输入带有符号的温度值：')
if temperature[-1] in ['f','F']:
    f=eval(temperature[:-1])
    c=(f-32)/1.8
    print(f'{temperature},转为摄氏度为：{round(c,2)}摄氏度')
elif temperature[-1] in ['c','C']:
    c = eval(temperature[:-1])
    f =c*1.8+32
    print(f'{temperature},转为华氏度为：{round(f,2)}华氏度')
else:
    print('输入格式有问题')xzxz